package com.springmvc.api.dao.impl;

import com.springmvc.api.base.dao.BaseDao;
import com.springmvc.api.dao.LoginDao;
import org.springframework.stereotype.Repository;

/**
 * Created by cmcc on 12/1/15.
 */
@Repository
public class LoginDaoImpl  extends BaseDao implements LoginDao{
    @Override
    public boolean login() {
        //String sql1 = "insert into springmvc_api.t_user1 (id,name,password) values(1,'admin','admin')";
        //int j = this.jdbcTemplate.update(sql1);
        //System.out.println("j:" + j);
        //String sql = "insert into springmvc_api.t_user (id,name,password) values(1,'admin','admin')";
        //int i = this.jdbcTemplate.update(sql);
        //System.out.println("i:" + i);
        return 1 > 0;
    }
}
